From: Руслан Ижбулатов Date: Wed, 6 Apr 2016 10:22:15 +0000 (+0000) Subject: GDK W32: Don't move windows into top-left corner on style change X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~2199 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=adff59843b3cd511557ba5a578d2e75e685b3bed;p=gtk%2B3.0.git GDK W32: Don't move windows into top-left corner on style change This fixes a bug that was introduced by db1b24233e758200ab9bc23fdb9b64dba4876a00. The reason why 0:0 coordinates were passed was that SWP_NOREPOSITION was misinterpreted as SWP_NOMOVE. That is not the case - SWP_NOREPOSITION prevents owner Z-order change, not the window position change. --- diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index e6601a85c5..411462c845 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -2846,7 +2846,7 @@ _gdk_win32_window_update_style_bits (GdkWindow *window) } SetWindowPos (GDK_WINDOW_HWND (window), insert_after, - 0, 0, + rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, flags); }